const handlebars = require('handlebars');
handlebars.registerHelper("array", function (items, options) {
    return JSON.stringify(items).replace('[', '{').replace(']', '}');
});
handlebars.registerHelper("print", function (options) {
    return options.fn();
});
handlebars.registerHelper("firstLoud", function (string = '') {
    return string.replace(string[0], string[0].toUpperCase());
})
handlebars.registerHelper("firstLower", function (string = '') {
    return string.replace(string[0], string[0].toLowerCase());
})

//todo

module.exports = handlebars;